﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace WCS.Infrastructure.EFCore;

/// <summary>
/// 支付设备表
/// </summary>
public partial class PaymentDevice
{
    /// <summary>
    /// 支付设备编号
    /// </summary>
    [Key]
    [StringLength(32)]
    public string Id { get; set; } = null!;

    /// <summary>
    /// 门店ID
    /// </summary>
    [StringLength(32)]
    public string StoreId { get; set; } = null!;

    /// <summary>
    /// 设备编码
    /// </summary>
    [StringLength(32)]
    public string DeviceCode { get; set; } = null!;

    /// <summary>
    /// 序列号
    /// </summary>
    [StringLength(32)]
    public string SerialNumber { get; set; } = null!;

    /// <summary>
    /// 设备名称
    /// </summary>
    [StringLength(256)]
    public string? Name { get; set; }

    /// <summary>
    /// 设备类型
    /// </summary>
    public int DeviceType { get; set; }

    /// <summary>
    /// 设备状态
    /// </summary>
    public int DeviceStatus { get; set; }

    /// <summary>
    /// 购买时间
    /// </summary>
    [Column(TypeName = "timestamp(6) without time zone")]
    public DateTime? PurchaseTime { get; set; }

    /// <summary>
    /// 保修截止时间
    /// </summary>
    [Column(TypeName = "timestamp(6) without time zone")]
    public DateTime? WarrantyExpirationTime { get; set; }

    /// <summary>
    /// 扩展属性
    /// </summary>
    public string ExtraProperties { get; set; } = null!;

    /// <summary>
    /// 并发标记
    /// </summary>
    [StringLength(40)]
    public string? ConcurrencyStamp { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    [Column(TypeName = "timestamp(6) without time zone")]
    public DateTime CreationTime { get; set; }

    /// <summary>
    /// 创建者ID
    /// </summary>
    [StringLength(32)]
    public string? CreatorId { get; set; }

    /// <summary>
    /// 最后修改时间
    /// </summary>
    [Column(TypeName = "timestamp(6) without time zone")]
    public DateTime? LastModificationTime { get; set; }

    /// <summary>
    /// 最后修改者ID
    /// </summary>
    [StringLength(32)]
    public string? LastModifierId { get; set; }

    /// <summary>
    /// 是否删除
    /// </summary>
    public bool IsDeleted { get; set; }

    /// <summary>
    /// 删除者ID
    /// </summary>
    [StringLength(32)]
    public string? DeleterId { get; set; }

    /// <summary>
    /// 删除时间
    /// </summary>
    [Column(TypeName = "timestamp(6) without time zone")]
    public DateTime? DeletionTime { get; set; }

    /// <summary>
    /// 启用状态
    /// </summary>
    public int EnableStatus { get; set; }
}
